package kjh820909.basic;

public class Ch04_Q8 {

	public static void main(String[] args) {
		SampleClass aClass = new SampleClass();
		int num = 15;
		aClass.addAndStore(num, 10);
		System.out.println(num);

	}

}


	class SampleClass{
		public void addAndStore(int i, int j){
			i = i + j;
		}
	}
	/*public class Example {
		public static void main(String args[]){
			SampleClass aClass = new SampleClass();
			int num = 15;
			aClass.addAndStore(num, 10);
			System.out.println(num);
		}
	}
*/
















